package com.xin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图书借阅
 * </p>
 *
 * @author l1
 * @since 2017-11-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("u_student_tu_shu_jie_yue")
public class UStudentTuShuJieYue extends Model<UStudentTuShuJieYue> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 学生工号
     */
	private String sid;
    /**
     * 图书编号
     */
	@TableField("tu_shu_bian_hao")
	private String tuShuBianHao;
    /**
     * 图书名称
     */
	@TableField("tu_shu_ming_cheng")
	private String tuShuMingCheng;
    /**
     * 年份
     */
	@TableField("nian_fen")
	private String nianFen;
    /**
     * 借阅日期
     */
	@TableField("jie_yue_ri_qi")
	private Date jieYueRiQi;
    /**
     * 归还日期
     */
	@TableField("gui_huan_ri_qi")
	private Date guiHuanRiQi;
    /**
     * 图书分类
     */
	@TableField("tu_shu_fen_lei")
	private String tuShuFenLei;
    /**
     * 借阅状态: 在借/归还
     */
	@TableField("jie_yue_zhuang_tai")
	private String jieYueZhuangTai;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
